﻿@model DatNuocViet.Models.Comment

@{
    ViewBag.Title = "InsertComment";
}

<h2>Thêm Comment mới</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div class="editor-label">
        Mô tả về khách hàng
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.Author, new { style = "width:400px; margin: 10px 0 10px 0"})
        @Html.ValidationMessageFor(model => model.Author)
    </div>
    <div class="editor-label">
        Nội dung comment
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.CommentContent, new { style = "width:400px; margin: 10px 0 10px 0", rows = "15" })
        @Html.ValidationMessageFor(model => model.CommentContent)
    </div>

    <p>
        <input type="submit" value="Tạo mới" />
    </p>
}

<div>
    @Html.ActionLink("Back to List", "Trian", "AdminHome")
</div>
